import './assets/main.css'
import routes from './routes'
import { createApp } from 'vue'
import App from './App.vue'

import {
  // component
  NButton,
  NForm,
  NFormItem,
  NFormItemCol,
  NInput,
  NInputGroup,
  NMenu,
  NH2,
  NDataTable,
  // create naive ui
  create,
  NProgress
} from 'naive-ui'

const naive = create({
  components: [
    NButton,
    NForm,
    NFormItem,
    NFormItemCol,
    NInput,
    NInputGroup,
    NMenu,
    NH2,
    NDataTable,
    NForm,
    NFormItem,
    NProgress
  ]
})

const app = createApp(App)
app.use(routes).use(naive).mount('#app').$nextTick(() => {
  postMessage({ payload: "removeLoading" }, "*");
});

